package net.huashitong.ssydt.user.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import net.huashitong.user.results.User;

import java.io.Serializable;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.12.20
 */
public class SimpleUserVO implements Serializable {

    private static final long serialVersionUID = 2148810143351507511L;

    @ApiModelProperty(value = "用户Id")
    private String userId;//用户Id

    @ApiModelProperty(value = "头像url")
    private String imageUrl;//头像url

    @ApiModelProperty(value = "昵称")
    private String nickname;//昵称

    @ApiModelProperty(value = "考试类型名称")
    private String examTypeName;//考试类型名称

    @ApiModelProperty(value = "考试类型")
    private String examType;//考试类型

    public SimpleUserVO(String userId, String imageUrl, String nickname, String examTypeName, String examType) {
        this.userId = userId;
        this.imageUrl = imageUrl;
        this.nickname = nickname;
        this.examTypeName = examTypeName;
        this.examType = examType;
    }

    public SimpleUserVO(User user) {
        this.userId = user.getUserId();
        this.imageUrl = user.getImageUrl();
        this.nickname = user.getNickname();
    }

    public SimpleUserVO() {
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getExamTypeName() {
        return examTypeName;
    }

    public void setExamTypeName(String examTypeName) {
        this.examTypeName = examTypeName;
    }

    public String getExamType() {
        return examType;
    }

    public void setExamType(String examType) {
        this.examType = examType;
    }
}
